<template>
  <div class="home">
    <h4>Vue2案例</h4>
    <div style="margin-bottom: 10px" v-for="(item, index) in links">
      <router-link :to="item.toUrl" tag="button">{{item.text}}</router-link>
    </div>
  </div>
</template>
<script>
export default {
  name: 'HomeView',
  components: {

  },
  data() {
    return {
      links: [
        {toUrl: '/custom-directive-demo', text: '导航栏（自定义指令）'},
        {toUrl: '/mytable', text: '表格组件V1'},
      ]
    }
  }
}
</script>